/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.res0w.SMMS.ds;

import com.res0w.SMMS.factory.DataBaseOperate;

/**
 *
 * @author res0w
 * @since 2009-9-22
 * @version 0.1
 */
public class Result implements BatchSqlInterface {

    public String atheleteId;
    public String result;
    public String itemsName;
    public String score="0";

    public void clear(){
        atheleteId=null;
        result=null;
        itemsName=null;
        score="0";
    }

    public String[] exeSqls() {
        String[] sqls = new String[1];
        sqls[0] = "update signup_cachelist set result='" + result + "' where " +
                "atheleteId='" + atheleteId + "' and joinItems='" + itemsName + "'";
//        System.out.println(sqls[0]);
        return sqls;
    }

    public void readSqls() {
        throw new UnsupportedOperationException("Not supported yet.");
    }
    /*
     *测试模块
    public static void main(String[] args){
    Result rs=new Result();
    rs.batchSqls();

    }
     */
}
